package cn.cvs.service.sysUser;

import cn.cvs.pojo.SysRole;
import cn.cvs.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/** 用户模块业务接口 */
public interface SysUserService {

    SysUser selectByAccount(String account);

    SysUser login(String account,String password);

    public List<SysUser> getList(SysUser sysUser);

    /**保存用户*/
    public boolean add(SysUser sysUser);

    boolean delete(Integer id);

    /* 修改密码 */
    int updatePwd(SysUser user);

    boolean update(SysUser user);

    /**
     * 分页查询用户列表
     * @param realName
     * @param roleId
     * @param pageBegin
     * @param pageSize
     * @return
     */
    List<SysUser> selectList(String realName,Integer roleId,Integer pageBegin,Integer pageSize);

    //根据用户ID查询用户详情
    SysUser getUserById(Integer id);

    int getUserCount(String queryRealName, Integer queryRoleId);

    List<SysUser> getUserList(String queryRealName, Integer queryRoleId, Integer pageIndex, int pageSize);

}
